package com.zy.cyan.action;

import java.util.ArrayList;
import java.util.List;

import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;

@Component("articleAction")
@Scope("prototype")
public class ArticleAction extends BaseAction {
	private String type;
	private long articleId;
	private String article; // 暂时是string类型 TODO
	// 瀑布般的展示
	public String waterfall() {
		System.out.println(type);
		return "articles";
	}

	public String detail() {
		System.out.println(articleId);
		return "detail";
	}

	public String add() {
		System.out.println(article);
		return SUCCESS;
	}

	// 文件归档展示
	public String archives() {
		return "archives";
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public long getArticleId() {
		return articleId;
	}

	public void setArticleId(long articleId) {
		this.articleId = articleId;
	}

	public String getArticle() {
		return article;
	}

	public void setArticle(String article) {
		this.article = article;
	}
}
